//
//  HotTopicCollectionViewCell.m
//  Beauty
//
//  Created by Snow on 16/9/1.
//  Copyright © 2016年 Snow. All rights reserved.
//

#import "HotTopicCollectionViewCell.h"
#import "GXMacro.h"
@implementation HotTopicCollectionViewCell
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        _image = [[UIImageView alloc] init];
        _labelOfTopic = [[UILabel alloc] init];
        [self.contentView addSubview:_image];
        [self.contentView addSubview:_labelOfTopic];
        [_image mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.mas_equalTo(self.contentView.mas_top);
            make.left.mas_equalTo(self.contentView.mas_left);
            make.right.mas_equalTo(self.contentView.mas_right);
            make.height.mas_equalTo(self.contentView.mas_height).multipliedBy(0.7);
        }];
        [_labelOfTopic mas_makeConstraints:^(MASConstraintMaker *make) {
           make.top.mas_equalTo(_image.mas_bottom).mas_equalTo(-10);
            make.left.mas_equalTo(_image.mas_left);
            make.right.mas_equalTo(_image.mas_right);
            make.bottom.mas_equalTo(self.contentView.mas_bottom).mas_equalTo(-10);
        }];
    }
    return self;
}
@end
